﻿Imports KanBan.Pgd.Infrastructure.EventLog
Imports NUnit.Framework
Imports NHibernate.Tool.hbm2ddl
Imports NHibernate.Cfg
Imports KanBan.Pgd.Domain.Entities

<TestFixture()> _
Public Class CreateDataBaseTest

    ''' <summary>
    ''' Este Test se encarga de crear la base de datos a partir del los esquemas de las clases de Dominio.
    ''' </summary>
    ''' <remarks></remarks>
    <Test()> _
    Public Sub CreateDataBaseTest()

        Dim configuration As New Configuration()
        configuration.Configure()
        configuration.AddAssembly(GetType(SearchRequest).Assembly)
        configuration.AddAssembly(GetType(EventLogger).Assembly)

        Dim schemaExport As New SchemaExport(configuration)
        schemaExport.Execute(False, True, False)

    End Sub

End Class
